<?php get_header(); ?>

	<div id="content" class="widecolumn">
<h1>Available Pets</h1>
	
	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

			<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
					
				<div class="postmeta">
                  
                  <div id="archieve_post">
                  	 	<div class="picture_archive">                
            	       <?php the_post_thumbnail('tiny_thumb'); ?>
				   		</div>
                                       
                    	<div id="description_archive">
                        <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
						<div class="archive_list">
                    		<ul>
                            	<li><?php animal_species();?></li>
                            	<li>Gender: <?php animal_gender();?></li>
                           		<li>Age: <?php animal_age();?></li>
                            	<li>Breed: <?php animal_breed();?></li>
                           	</ul>   
                       </div>
                      </div>
                   		<?php if(is_animal_adopted()){?>
						<div id="archive_adopted">Adopted!!</div><?php
						};  ?>
                    <div id="archive_foster"> Foster Home Location: <?php animal_foster_home();?></div>   
                 
                   </div>
                  
                    
                    
                    
						<?php if (comments_open()) : ?><span class="comments"><?php comments_popup_link(__('0 <span>comments</span>', 'notesblog'), __('1 <span>comment</span>', 'notesblog'), __('% <span>comments</span>', 'notesblog'), '', 'Comments are closed'); ?></span><?php endif; ?>
						<span class="author"><?php //_e("By", "notesblog");?> <a href="<?php the_author_meta('url'); ?>" title="<?php the_author(); ?>" class="author"><?php //the_author(); ?></a></span>
						<span class="categories"><?php // _e("Filed in", "notesblog");?> <?php the_category(', '); ?></span>
						<span class="tags"><?php the_tags(__('Tagged with ', 'notesblog'),', ',''); ?></span>
						<span class="timestamp"><?php //the_time(__('F jS, Y', 'notesblog')) ?> <?php //the_time(); ?></span>
					</div>
				<div class="entry">
					<?php //the_content(__('Read more', 'notesblog')); ?>
				</div> 
			</div>
			
		<?php endwhile; ?>
		
			<div class="nav widecolumn">
				<div class="left"><?php next_posts_link(__('See previous pets', 'notesblog')) ?></div>
				<div class="right"><?php previous_posts_link(__('See more pets', 'notesblog')) ?></div>
			</div>
		
	<?php else : ?>
		<p>No animals found</p>
	<?php endif; ?>

	</div>

<?php get_sidebar(); ?>
<?php get_footer(); ?>